﻿<Controls:SinacorWindow
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
          xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
          mc:Ignorable="d"
          xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
	      WindowStartupLocation="CenterScreen"
          WindowState="Normal"
	      x:Class="Sinacor.UI.Bovespa.ImportacaoExportacao.View.SmartClient.Importacoes" 
          ModulePlus="False"
          ModuleId="ORD" 
          Width="800" 
          Height="600" 
          Title="{DynamicResource Bovespa.ImportacaoExportacao.Label.Importacoes}" >


    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Controls:SinacorExpanderContainer>
            <Controls:SinacorExpander AllowExpand="False"
              					Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.Importacoes}">
                <Controls:SinacorScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
                    <StackPanel Orientation="Vertical">
                        <Controls:SinacorGroupBox VerticalAlignment="Top"
    							Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.ImportarArquivo}"
    							Height="53" 
    							HorizontalAlignment="Stretch" Width="Auto" >
                            <Grid Width="Auto" 		
    								Height="Auto" 		
    								HorizontalAlignment="Stretch" 		
    								VerticalAlignment="Top">
                                <Controls:SinacorFilePicker 
                        			Height="21"
                        			WidthPath="530"
                        			VerticalAlignment="Top" 
                        			TabIndex="1" 
									HorizontalAlignment="Left" 
									Width="630" 
									Margin="8,0,0,0"
                                    x:Name="FlpArquivo"
                                    CheckFileExists="True"
                                    CheckPathExists="True"
                                    Filter="TXT|*.txt|XML|*.xml"
                                    Value="{Binding Filtro.NomeArquivo}"/>
                            </Grid>
                        </Controls:SinacorGroupBox>
                        <Controls:SinacorGroupBox Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.Parametros}" 
                                                  Width="Auto" 
                                                  Height="75"
                                                  x:Name="GrpImportarNEGR"
                                                  Visibility="Collapsed">
                            <Grid>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.TipoArquivo}" 
									Margin="8,0,0,0" 
									HorizontalContentAlignment="Left" Width="124"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="8,21,0,0" 
									Width="269" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    x:Name="TxtImportarNEGRTipoArquivo"/>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.DataPregao}" 
									Margin="281,0,0,0"  
									HorizontalContentAlignment="Left" 
									Width="122"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="281,21,0,0" 
									Width="145" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    x:Name="TxtImportarNEGRDataPregao"
                                    Text="{Binding Filtro.DataPregao, StringFormat=\{0:d\}}"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="512,21,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Importar}"
    								VerticalAlignment="Top"
    								IsDefault="True"
    								TabIndex="3" 
                                    CausesValidation="True"
                                    x:Name="BtnImportarNEGR"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="616,21,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Cancelar}"
    								VerticalAlignment="Top"
    								TabIndex="4" 
                                    IsEnabled="False"                    
                                    x:Name="BtnCancelarNEGR"/>

                            </Grid>
                        </Controls:SinacorGroupBox>
                        <Controls:SinacorGroupBox Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.Parametros}" 
                                                  Width="Auto" 
                                                  Height="116"
                                                  x:Name="GrpImportarNEGS"
                                                  Visibility="Collapsed">
                            <Grid>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.TipoArquivo}" 
									Margin="8,0,0,0" 
									HorizontalContentAlignment="Left" Width="122"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="8,21,0,0" 
									Width="269" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    x:Name="TxtImportarNEGSTipoArquivo"/>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Correspondente}" 
									Margin="281,0,0,0" 
									HorizontalContentAlignment="Left" Width="127"/>
                                <Controls:SinacorInt32TextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="281,21,0,0" 
									Width="145" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsFormated="False"
                                    IsEnabled="True"
                                    Integers="7"
                                    Value="{Binding Filtro.CodigoCorrespondente}"
                                    x:Name="TxtImportarNEGSCodigoCorrespondente"/>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.DataPregao}" 
									Margin="8,46,0,0" 
									HorizontalContentAlignment="Left" 
									Width="122" 
                                    VerticalAlignment="Top"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="8,67,0,0" 
									Width="145" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    x:Name="TxtImportarNEGSDataPregao"
                                    Text="{Binding Filtro.DataPregao, StringFormat=\{0:d\}}"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="512,62,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Importar}"
    								VerticalAlignment="Top"
    								IsDefault="True"
    								TabIndex="3"
                                    CausesValidation="True"                    
                                    x:Name="BtnImportarNEGS"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="616,62,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Cancelar}"
    								VerticalAlignment="Top"
    								TabIndex="4" 
                                    IsEnabled="False"                    
                                    x:Name="BtnCancelarNEGS"/>

                            </Grid>
                        </Controls:SinacorGroupBox>
                        <Controls:SinacorGroupBox Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.Parametros}" 
                                                  Width="Auto" 
                                                  Height="75"
                                                  x:Name="GrpImportarErroAlocaoComitentes"
                                                  Visibility="Collapsed">
                            <Grid>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.TipoArquivo}" 
									Margin="8,0,0,0" 
									HorizontalContentAlignment="Left" Width="124"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="8,21,0,0" 
									Width="269"  
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    x:Name="TxtImportarErroAlocaoComitentesTipoArquivo"/>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.DataPregao}" 
									Margin="281,0,0,0" 
									HorizontalContentAlignment="Left" 
									Width="120"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
								Margin="281,21,0,0" 
									Width="145" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    Text="{Binding Filtro.DataPregao, StringFormat=\{0:d\}}"
                                    x:Name="TxtImportarErroAlocaoComitentesDataPregao"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="512,21,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Importar}"
    								VerticalAlignment="Top"
    								IsDefault="True"
    								TabIndex="3" 
                                    CausesValidation="True"                    
                                    x:Name="BtnImportarErroAlocaoComitentes"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="616,21,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Cancelar}"
    								VerticalAlignment="Top"
    								TabIndex="4"
                                    IsEnabled="False"
                                    x:Name="BtnCancelarErroAlocaoComitentes"/>
                            </Grid>
                        </Controls:SinacorGroupBox>
                        <Controls:SinacorGroupBox Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.Parametros}" 
                                                  Width="Auto" 
                                                  Height="182"
                                                  x:Name="GrpImportarTORDIST"
                                                  Visibility="Collapsed">
                            <Grid>
                                <Controls:SinacorLabel 
									HorizontalAlignment="Left" 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.TipoArquivo}" 
									Margin="8,0,0,0" 
									HorizontalContentAlignment="Left" Width="123"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="8,21,0,0" 
									Width="269" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    x:Name="TxtImportarTORDISTTipoArquivo"/>
                                <Controls:SinacorLabel 
									Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.DataPregao}" 
									Margin="281,0,0,0" 
									HorizontalContentAlignment="Left" 
									Width="Auto" HorizontalAlignment="Left"/>
                                <Controls:SinacorTextBox 
									HorizontalAlignment="Left" 
									TextWrapping="Wrap" 
									Margin="281,21,0,0" 
									Width="145" 
									Height="21" 
									VerticalAlignment="Top" 
                                    IsEnabled="False"
                                    Text="{Binding Filtro.DataPregao, StringFormat=\{0:d\}}"
                                    x:Name="TxtImportarTORDISTDataPregao"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="512,129,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Importar}"
    								VerticalAlignment="Top"
    								IsDefault="True"
    								TabIndex="3" 
                                    x:Name="BtnImportarTORDIST"/>
                                <Controls:SinacorButton HorizontalAlignment="Left"
    								Margin="616,129,0,0"
    								Width="100"
    								Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Cancelar}"
    								VerticalAlignment="Top"
    								TabIndex="4"
                                    IsEnabled="False"
                                    x:Name="BtnCancelarTORDIST"/>
                                <Controls:SinacorGroupBox 
									HorizontalAlignment="Left" 
									VerticalAlignment="Top" Height="51" 
									Margin="8,46,0,0" 
									Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.DistribuicaoPor}" 
                                    Width="228">
                                    <Grid HorizontalAlignment="Stretch" 
										  VerticalAlignment="Stretch">
                                        <Controls:SinacorRadioButton x:Name="RbtImportarTORDISTApelido" 
											VerticalAlignment="Top" 
											Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Apelido}" 
                                            Width="Auto" Margin="0,0,0,0" HorizontalAlignment="Left"/>
                                        <Controls:SinacorRadioButton x:Name="RbtImportarTORDISTCliente"
											HorizontalAlignment="Left" 
											VerticalAlignment="Top" 
											Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Cliente}" 
											Margin="104,0,0,0" 
                                            Width="105"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                                <Controls:SinacorGroupBox 
									HorizontalAlignment="Left" 
									VerticalAlignment="Top" Height="49" 
									Margin="8,101,0,0" 
									Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.TipoDistribuicaoPrecoMedio}" 
                                    Width="350" d:LayoutOverrides="HorizontalAlignment">
                                    <Grid HorizontalAlignment="Stretch" 
										  VerticalAlignment="Stretch">
                                        <Controls:SinacorRadioButton x:Name="RbtImportarTORDISTVolume" 
											VerticalAlignment="Top" 
											Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Volume}" 
                                            Width="Auto" Margin="0,0,0,0" HorizontalAlignment="Left"/>
                                        <Controls:SinacorRadioButton x:Name="RbtImportarTORDISTQuantidade"
											HorizontalAlignment="Left" 
											VerticalAlignment="Top" 
											Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Quantidade}"  
											Margin="104,0,0,0" 
                                            Width="116"/>
                                        <Controls:SinacorRadioButton x:Name="RbtImportarTORDISTPercentual"
											HorizontalAlignment="Right" 
											VerticalAlignment="Top" 
											Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Percentual}"  
											Margin="0,0,-5,0" 
                                            Width="117"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>

                                <Controls:SinacorCheckBox x:Name="ChkAcrescimoDescontoTORDIST"
									  VerticalAlignment="Top" 
									  Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.AcrescimoDescontoArquivo}" 
									  Margin="240,76,0,0" 
									  Width="Auto" HorizontalAlignment="Left"
                                      IsChecked ="{Binding Filtro.CalcualrAcrescimoDecrescimo}" d:LayoutOverrides="VerticalAlignment"/>

                            </Grid>
                        </Controls:SinacorGroupBox>
                        <Controls:SinacorGroupBox
    							Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.StatusProcessamento}"
    							Height="Auto"
    							HorizontalAlignment="Stretch" 
    							VerticalAlignment="Top" 
								Width="Auto" >
                            <Grid Width="Auto"
    								Height="114"
    								HorizontalAlignment="Stretch"
    								VerticalAlignment="Top">
                                <Controls:SinacorProgressBar 
									HorizontalAlignment="Left" 
									VerticalAlignment="Top" 
									Width="350" 
									Height="10" 
									Margin="0,53,0,0"
                                    x:Name="PgbProgresso"
                                    Value="{Binding StatusProcesso.Progress}"/>
                                <Controls:SinacorGroupBox
    								Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.InicioProcessamento}"
    								Width="337"
    								Height="52"
    								HorizontalAlignment="Left" 
    								Margin="395,0,0,0" 
    								VerticalAlignment="Top" >
                                    <Grid Width="319"
    										Height="Auto"
    										HorizontalAlignment="Left"
    										VerticalAlignment="Top" 
    										Margin="0,-4,0,0">
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
    										Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Data}"
    										Width="56"
    										VerticalAlignment="Top"
    										Margin="0,0,0,0"/>
                                        <Controls:SinacorTextBox VerticalAlignment="Top" 
    										Margin="60,0,0,0" 
    										HorizontalAlignment="Left" 
    										Width="84" 
    										IsEnabled="False" 
                                            x:Name="TxtDataInicial"/>
                                        <Controls:SinacorLabel
    										Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Hora}"
    										Width="56"
    										VerticalAlignment="Top"
    										Margin="148,0,0,0" 
    										HorizontalAlignment="Left"/>
                                        <Controls:SinacorTextBox VerticalAlignment="Top" 
    										Margin="208,0,0,0" 
    										Width="84" 
    										HorizontalAlignment="Left" 
    										IsEnabled="False" 
                                            x:Name="TxtHoraInicial"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>

                                <Controls:SinacorGroupBox
    								Header="{DynamicResource Bovespa.ImportacaoExportacao.Label.FimProcessamento}"
    									Width="337"
    									Height="52"
    									HorizontalAlignment="Left" 
    									Margin="395,56,0,0" 
    									VerticalAlignment="Top" >
                                    <Grid Width="319"
    										Height="Auto"
    										HorizontalAlignment="Left"
    										VerticalAlignment="Top" 
    										Margin="0,-4,0,0">
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
    										Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Data}"
    											Width="56"
    											VerticalAlignment="Top"
    											Margin="0,0,0,0"/>
                                        <Controls:SinacorTextBox VerticalAlignment="Top" 
    											HorizontalAlignment="Left" 
    											Margin="60,0,0,0" 
    											Width="84" 
    											IsEnabled="False"
                                                x:Name="TxtDataFinal"/>
                                        <Controls:SinacorLabel
    										Content="{DynamicResource Bovespa.ImportacaoExportacao.Label.Hora}"
    											Width="56"
    											VerticalAlignment="Top"
    											Margin="148,0,0,0" 
    											HorizontalAlignment="Left"/>
                                        <Controls:SinacorTextBox VerticalAlignment="Top" 
    											Margin="208,0,0,0" 
    											Width="84" 
    											HorizontalAlignment="Left" 
    											IsEnabled="False" 
                                                x:Name="TxtHoraFinal"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                            </Grid>
                        </Controls:SinacorGroupBox>
                    </StackPanel>
                </Controls:SinacorScrollViewer>
            </Controls:SinacorExpander>
        </Controls:SinacorExpanderContainer>
    </Grid>
</Controls:SinacorWindow>
